package cn.sdack.go.users.service;

import cn.sdack.go.common.dtos.users.UserDTO;
import cn.sdack.go.common.entities.users.UserEntity;
import cn.sdack.go.common.querys.users.UserQuery;
import org.springframework.data.domain.Page;

/**
 * @author sdack
 * @date 2024/1/4
 */
public interface UserService {

    UserEntity userinfo(String account);

    Page<UserEntity> queryAll(UserQuery param,int page,int pageSize) throws Exception;

    UserEntity getById(Long id) throws IllegalAccessException;

    UserEntity add(UserDTO param) throws IllegalAccessException;

    UserEntity editUserinfo(UserDTO param) throws IllegalAccessException;

    void setIdentity(Long uid, String identity)  throws Exception;

    void setState(Long uid, int state)  throws Exception;
}
